package com.teemor.blog.service.impl;


import com.teemor.blog.bean.condition.TbModifyhisCondition;
import com.teemor.blog.bean.entity.TbModifyhis;
import com.teemor.blog.mapper.TbModifyhisMapper;
import com.teemor.blog.service.IModifyhisService;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: zhoulk
 * @Description: 原子服务实现
 * @date: 2020/03/24 17:33:32
 */
@Service
public class ModifyhisServiceImpl implements IModifyhisService {
    @Autowired
    private TbModifyhisMapper tbModifyhisMapper;

    @Override
    public int countModifyhis(TbModifyhisCondition condition) {
        return tbModifyhisMapper.countModifyhisByCondition(condition);
    }

    @Override
    public List<TbModifyhis> qryModifyhiss(TbModifyhisCondition condition) {

        return tbModifyhisMapper.selectModifyhisByCondition(condition);
    }

    @Override
    public TbModifyhis qryModifyhisById(Integer id) {
        return tbModifyhisMapper.selectModifyhisById(id);
    }

    @Override
    public int addModifyhis(TbModifyhis inParam) {
        return tbModifyhisMapper.insertModifyhis(inParam);
    }

    @Override
    public int updModifyhisById(TbModifyhis inParam) {
        return tbModifyhisMapper.updateModifyhisById(inParam);
    }
}